{include file="public/header" title="编辑体质" /}


<div class="tpl-page-container tpl-page-header-fixed">
    <div class="tpl-left-nav tpl-left-nav-hover">
        {include file="public/sidebar" /}
    </div>
    <div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="{:url('admin/index')}" class="am-icon-home">首页</a></li>
            <li><a href="{:url('physical/index')}">体质类型</a></li>
            <li class="am-active">编辑体质信息</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold">
                    <span class="am-icon-code"></span> 编辑体质信息
                </div>
            </div>
            <div class="tpl-block ">
                <div class="am-g tpl-amazeui-form">
                    <div class="am-u-sm-12 am-u-md-9">
                        <form class="am-form am-form-horizontal" action="{:url('physical/update')}" method="post">
                            <div class="am-form-group">
                                <label for="physical-type" class="am-u-sm-3 am-form-label">体质类型</label>
                                <div class="am-u-sm-9">
                                    <input type="text" id="physical-type" readonly value="{$physical.type}">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="physical-content" class="am-u-sm-3 am-form-label">体质说明</label>
                                <div class="am-u-sm-9">
                                    <script type="text/plain" id="editor" name="content" style="width: 100%;">{$physical.content}</script>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <input type="hidden" name="id" value="{$physical.id}">
                                    <button type="submit" class="am-btn am-btn-primary">保存修改</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<link href="__STATIC__/admin/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="__STATIC__/admin/umeditor/third-party/template.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/umeditor/umeditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/admin/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/umeditor/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">
    var um = UM.getEditor('editor');
</script>

{include file="public/footer" /}